import APICONFIG from "@/config/config.js"
import {uniToPromise} from "@/utils/uni.js"



class Http{
	static async request({url, data = {}, method = "GET"}){
		const res = await uniToPromise("request", {
			url: APICONFIG.baseUrl + url,
			method,
			data
		})
		
		return res.data
	}
}


export default Http